function sl_customization(cm)

%   Copyright 2021 The MathWorks, Inc.

% Place do178Lib at the top of the Library Browser.
cm.LibraryBrowserCustomizer.applyOrder({'DO-178C/DO-331 Primitive Library', -2});

% Expand do178Lib when the Library Browser is opened.
cm.LibraryBrowserCustomizer.applyNodePreference({'Simulink', false, 'DO-178C/DO-331 Primitive Library', true});

% % Hide all libraries except do178Lib.
% components = LibraryBrowser.LBStandalone.getLBComponents;
% if ~isempty(components)
%     component = components(cellfun(@(a) isempty(a.getStudio), components));
%     lbComponent = component{1};
%     libraryNames = lbComponent.getSortedLibraryNames;
%     % Disable existing libraries.
%     for idx = 1:numel(libraryNames)
%         if contains(libraryNames{idx}, 'DO-178C') || strcmp(libraryNames{idx}, 'Simulink')
%             cm.LibraryBrowserCustomizer.applyFilter({libraryNames{idx}, 'Enabled'});
%         else
%             cm.LibraryBrowserCustomizer.applyFilter({libraryNames{idx}, 'Hidden'});
%         end
%     end
% end

% Refresh the Library Browser.
lb = LibraryBrowser.LibraryBrowser2;
refresh(lb);

end
